package com.liang.service.user;

import com.liang.pojo.User;

import java.sql.Connection;
import java.util.Date;
import java.util.List;

public interface UserService {
    public User login(String userCode);
    public Boolean updatePassword(String userPassword,Integer id);
    public List<User> getUserList(String userName,int userRole,int currentPageNo,int pageSize);
    public int getCount(String userName,int userRole);
    public Boolean deleteUser(Integer uid);
    public User getUserInfoForId(Integer uid);
    public Boolean insertUser(String userCode, String userName, String userPassword,
                              Integer gender, Date birthday, String phone, String address, Integer userRole, Integer createdBy,
                              Date creationDate);
    public Boolean modifyUser(Integer id, String userName,Integer gender, Date birthday,String phone,String address,Integer userRole,Integer modifyBy,
                              Date modifyDate);
}
